<%--
  Created by IntelliJ IDEA.
  User: ch-hui
  Date: 16/2/10
  Time: 上午11:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>
<html>
<head>
    <title>配方单明细</title>
</head>
<body>

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>${recipeDto.name}</h2>
        <ol class="breadcrumb">
            <li>
                配方时间：${recipeDto.createTime}
            </li>
            <li>
                配方创建人：${recipeDto.createUser}
            </li>
            <li>
                配方成本：<fmt:formatNumber type="currency" var="money">${recipeDto.recipeCost}</fmt:formatNumber><c:out value="${money}"></c:out>／kg
            </li>
        </ol>
    </div>
    <div class="col-lg-2">

    </div>
</div>


<div class="wrapper wrapper-content">
    <div class="row">

        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>推荐配方（%）</h5>
                </div>
                <div class="ibox-content">
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                        <tr>
                            <c:forEach var="more1" items="${recipe_mores}">
                                <th>${more1.material_name}</th>
                            </c:forEach>
                        </tr>
                        </thead>

                        <tbody>
                        <tr>

                            <c:forEach var="more2" items="${recipe_mores}">
                                <td>${more2.material_pct}</td>

                            </c:forEach>
                        </tr>

                        </tbody>

                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <a class="btn btn-danger btn-rounded btn-block"><i class="fa fa-edit"></i> 生产此配方单</a>
        </div>

        <div class="col-lg-6">
            <a class="btn btn-primary btn-rounded btn-block" href="${BASE}/recipe"><i class="fa fa-undo"></i> 返回</a>
        </div>
        <div>&nbsp;</div>
    </div>
</div>


</body>
</html>
